package edu.chinasoft.service;

import edu.chinasoft.domain.Function;
import edu.chinasoft.domain.User;
import edu.chinasoft.mapper.FunctionMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

public class FunctionServiceImp implements FunctionService {
    private Logger logger = LoggerFactory.getLogger(FunctionServiceImp.class);
    private FunctionMapper functionMapper;
    @Override
    public List<Function> getFunctionByUser(User user){
        logger.debug("FunctionServiceImp>>>getFunctionByUser start ……");
        List<Function> result = functionMapper.selectTableByUserId(user);
        logger.debug("FunctionServiceImp>>>getFunctionByUser end ……");
        return result;

    }


    public FunctionMapper getFunctionMapper() {
        return functionMapper;
    }

    public void setFunctionMapper(FunctionMapper functionMapper) {
        this.functionMapper = functionMapper;
    }
}
